home *** CD-ROM | disk | FTP | other *** search
/ Armageddon - Interactive Preview / Interactive Preview: Armageddon.iso / pc / quizgame.dxr / 00075_Play Again.ls < prev    next >
Encoding:
Text File  |  1998-05-15  |  1.7 KB  |  67 lines

  1. global gTime, gPlayList, gQuestionList, gcheckQ, n, gQuitB, gFinal, gPauseState, gQ1List, gQ2List, gQ3List, gBuzzState, gWhoA, g1stTimeout, g2ndTimeout, gAnswer, gP1Money, gP2Money, gP3Money, gOldtimer, gHowLong, gPauseB
  2.  
  3. on mouseEnter me
  4.   set the member of sprite the currentSpriteNum to "PLAY AGAIN-ON ROLLOVER"
  5. end
  6.  
  7. on mouseLeave me
  8.   set the member of sprite the currentSpriteNum to "PLAY AGAIN-NORMAL"
  9. end
  10.  
  11. on mouseDown me
  12.   set the member of sprite the currentSpriteNum to "PLAY AGAIN-ON MOUSEDOWN"
  13. end
  14.  
  15. on mouseUp me
  16.   if rollOver(the clickOn) then
  17.     set the member of sprite the currentSpriteNum to "PLAY AGAIN-NORMAL"
  18.     puppetSound(1, "soft metal")
  19.     repeat with x = 1 to 120
  20.       puppetSprite(x, 0)
  21.     end repeat
  22.     set g1stTimeout to 0
  23.     set g2ndTimeout to 0
  24.     set gBuzzState to 0
  25.     set gcheckQ to 0
  26.     set gWhoA to 0
  27.     set gAnswer to 0
  28.     set gOldtimer to 0
  29.     set gPlayList to []
  30.     put EMPTY into field 161
  31.     set gQuestionList to []
  32.     repeat with x = 14 to 25
  33.       add(gQuestionList, x)
  34.       updateStage()
  35.     end repeat
  36.     set gPauseState to 0
  37.     set gPauseB to 0
  38.     set gQuitB to 0
  39.     set gOK to 0
  40.     set gFinal to 0
  41.     set gQ1List to []
  42.     set gQ2List to []
  43.     set gQ3List to []
  44.     set gP1Money to 0
  45.     set gP2Money to 0
  46.     set gP3Money to 0
  47.     set gHowLong to 0
  48.     put gP1Money into field 200
  49.     put gP2Money into field 201
  50.     put gP3Money into field 202
  51.     repeat with x = 260 to 265
  52.       add(gQ1List, x)
  53.       updateStage()
  54.     end repeat
  55.     repeat with x = 266 to 271
  56.       add(gQ2List, x)
  57.       updateStage()
  58.     end repeat
  59.     repeat with x = 272 to 278
  60.       add(gQ3List, x)
  61.       updateStage()
  62.     end repeat
  63.     updateStage()
  64.     go(1)
  65.   end if
  66. end
  67.